gsk: Add font options to the glyph cache
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Sep 2021 03:01:43 +0000 (23:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Sep 2021 16:52:05 +0000 (12:52 -0400)
commit6599cb001fa184ed224c655519d659f168e9face
treeca870510f475e9cc53584fc072b8b835d6b63d88
parentf1347f5841ea526c7016a8fbd329b45001812a23
gsk: Add font options to the glyph cache

The cairo_t that we create to render glyphs for
the glyph cache needs to match the font options
that are supposedly governing how glyphs are
drawn.

Since we allow font options to be different per
widget in gtk, we need to have them at least at
the level of individual render nodes. Adding them
to the lookup key for the glyph cache has the
side effect of solving another problem: We are
not flushing the cache when font options change.
gsk/ngl/gsknglglyphlibrary.c
gsk/ngl/gsknglglyphlibraryprivate.h